import 'package:gameplay_flutter/generated/json/base/json_field.dart';
import 'package:gameplay_flutter/generated/json/discover_topic_entity.g.dart';
import 'dart:convert';
export 'package:gameplay_flutter/generated/json/discover_topic_entity.g.dart';

@JsonSerializable()
class DiscoverTopicEntity {
	late int id = 0;
	late String description = '';
	late int delFlag = 0;
	late String updateTime = '';
	late int weight = 0;
	late String img = '';
	late int userNum = 0;
	late String createTime = '';
	late int num = 0;
	late int recommentFlag = 0;
	late int enableFlag = 0;
	late String name = '';
	late int categoryId = 0;

	DiscoverTopicEntity();

	factory DiscoverTopicEntity.fromJson(Map<String, dynamic> json) => $DiscoverTopicEntityFromJson(json);

	Map<String, dynamic> toJson() => $DiscoverTopicEntityToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}